class BG3PlayerInput extends UTPlayerInput within BG3PlayerController
	config(Input);

//simply exit on Esc keypress for now
simulated exec function DoExit()
{
	ConsoleCommand("exit");
}

//associated with the key M in the DefaultInput.ini
simulated exec function OpenIngameMenuOverlay()
{
    local BG3HUD bg3HUD;
    
    bg3HUD = BG3HUD(myHUD);
    if(bg3HUD != none)
    {
        bg3HUD.ToggleHUDLayout("ClassSelectionMenu");
    }
}

//overwritten to store mousecoordinates for HUD operations
event PlayerInput( float DeltaTime )
{
	CurrentMousePosition.X = CurrentMousePosition.X + aMouseX;
	CurrentMousePosition.Y = CurrentMousePosition.Y - aMouseY;
	if(BG3HUD(myHUD) != none)
	{
		CurrentMousePosition.X = Clamp(CurrentMousePosition.X,0,BG3HUD(myHUD).ClipX);
		CurrentMousePosition.Y = Clamp(CurrentMousePosition.Y,0,BG3HUD(myHUD).ClipY);
	}
	Super.PlayerInput(DeltaTime);
}


defaultproperties
{
	
}